package cn.itsource.service.impl;

import cn.itsource.domain.Bill;
import cn.itsource.mapper.BillMapper;
import cn.itsource.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillServiceImpl implements BillService {

    @Autowired
    private BillMapper billMapper;

    @Override
    public List<Bill> findAll() {
        return billMapper.findAll();
    }

    @Override
    public void add(Bill bill) {
        billMapper.add(bill);
    }

    @Override
    public void update(Bill bill) {
        billMapper.update(bill);
    }

    @Override
    public void delete(int id) {
        billMapper.delete(id);
    }

    @Override
    public Bill findOne(int id) {
        return billMapper.findOne(id);
    }
}
